package com.ccnu.JobHub.model.database;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("posts")
public class Post {
    @TableId("post_id")
    private Long postId;

    @TableField("student_id")
    private Long studentId;

    @TableField("title")
    private String title;

    @TableField("content")
    private String content;

    @TableField("created_at")
    private Timestamp createdAt;

    @TableField("updated_at")
    private Timestamp updatedAt;

    @TableField("status")
    private Integer status;

    @TableField("is_share")
    private Integer isShare;

    @TableField("share_post_id")
    private Long sharePostId;

    @TableField("like_num")
    private Integer likeNum;

    @TableField("dislike")
    private Integer dislike;

    private transient String nickname;
//    private transient String avatar;
}
